﻿using SiyinPractice.Domain.ProjectManagement.ProjectManage;
using SiyinPractice.Infrastructure.EntityFramework.EntityConfigurations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SiyinPractice.Infrastructure.DataStore.ProjectManagement.ProjectManage.EntityConfigurations
{

    public class DingDingConfiguration : AbstractEntityTypeConfiguration<DingDing>
    {
        public override void Configure(EntityTypeBuilder<DingDing> builder)
        {
            base.Configure(builder);
            builder.ToTable("SysDingDing");
            builder.Property(x => x.PId).HasColumnName("PId");
            builder.Property(x => x.IsPid).HasColumnName("IsPid");
            builder.Property(x => x.Appkey).HasColumnName("Appkey");
            builder.Property(x => x.Appsecret).HasColumnName("Appsecret");
            builder.Property(x => x.Agent_id).HasColumnName("Agent_id");
            builder.Property(x => x.DefaultTimer).HasColumnName("DefaultTimer");
            builder.Property(x => x.DefaultTimerInterval).HasColumnName("DefaultTimerInterval");

            builder.Property(x => x.UserId_List).HasColumnName("UserId_List");
            builder.Property(x => x.To_All_User).HasColumnName("To_All_User");
            builder.Property(x => x.Dept_Id_List).HasColumnName("Dept_Id_List");
            builder.Property(x => x.Msgtype).HasColumnName("Msgtype");
            builder.Property(x => x.Title).HasColumnName("Title");
            builder.Property(x => x.Content).HasColumnName("Content");
        }
    }
}
